@extends('Layout/layout')
@section('yemian')
<style type="text/css">
	.e_css {
    background: url(/public/images/lift_li_02_02.gif) no-repeat;
    width: 179px;
    font-weight: bold;
    color: #000;
    z-index: 1;
	}
</style>
<script type="text/javascript">
	$(document).ready(function(){ 
	 
		document.getElementById("person").className = "e_css";
	}); 
</script>
<body class="mian_bj">
<div class="mian_top_01">
<div class="mian_top_r"></div>
<div class="mian_top_l"></div>
<div class="mian_top_c">
<ul>
<li><a href="{{ url('Personnel/Person/index') }}"><p>员工档案</p></a></li>
<li><a href="{{ url('Personnel/Leave/index') }}"><p>请假申请</p></a></li>
<li><a href="{{ url('Personnel/Adjust/index') }}"><p>职位调整申请</p></a></li>
<li><a href="{{ url('Personnel/Leaveoffice/index') }}"><p>离职申请</p></a></li>
@if(session('role') == 1)
<li><a href="{{ url('Personnel/Recruit/index') }}"><p>人员招聘</p></a></li>
<li><a href="{{ url('Personnel/Performance/index') }}"><p>绩效管理</p></a></li>
<li><a href="{{ url('Personnel/Socialinsurance/index') }}"><p>社保</p></a></li>
<li><a href="{{ url('Personnel/Money/index') }}"><p>工资管理</p></a></li>
@endif
<li><a href="{{ url('Personnel/Training/index') }}"><p>员工培训</p></a></li>
</ul>
</div>
<div class="mian_b">
	<form action="{{url('Personnel/Person/update')}}" method="post">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg_xz">
			<tr>
			<input type="hidden" name="id" value="{{$id}}">
				<td width="5%" class="mian_b_bg_lm">&nbsp;</td>
				<td colspan="3" class="mian_b_bg_lm">员工编辑</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td width="10%" valign="top">工号：</td>
				<td width="60%">{{$info[0]['PersonID']}} </td>
				<td width="30%">&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td width="10%" valign="top">员工姓名：</td>
				<td width="60%">{{$info[0]['PersonName']}}</td>
				<td width="30%">&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td width="10%" valign="top">性别：</td>
				<td width="60%">{{str_replace([0,1],['男','女'],$info[0]['Sex'])}}</td>
				<td width="30%">&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td width="10%" valign="top">学历：</td>
				<td width="60%">{{str_replace([0,1,2,3],['本科','专科','中专','小学'],$info[0]['Education'])}}</td>
				<td width="30%">&nbsp;</td>
			</tr>
			
			<tr>
				<td>&nbsp;</td>
				<td width="10%" valign="top">所属部门：</td>
				<td width="60%">{{$info[0]['DepartmentName']}}</td>
				<td width="30%">&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td width="10%" valign="top">所属职位：</td>
				<td width="60%">{{$info[0]['PostName']}}</td>
				<td width="30%">&nbsp;</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
				<td width="10%" valign="top">状态：</td>
				<td width="60%">@if($info[0]['Status'] == 1)
						离职
					@else
						在职
					@endif
				</td>
				<td width="30%">&nbsp;</td>
			</tr>
			
			<tr>
				<td>&nbsp;</td>
				<td>

			<a href="{{ url('Personnel/Person/index') }}" style="background:#383838;width:200px;height:30px;font-size:18px;color:white;">返回</a>

				</td>
				<td>&nbsp;</td>
			</tr>
		</table>
	</form>
</div>
</div>
</body>
@endsection